package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="BILL_STATE"
 *     
*/
public class BillState implements Serializable {

    /** identifier field */
    private String bnoGuid;

    /** persistent field */
    private String bnoBillNumber;

    /** persistent field */
    private String orgCode;

    /** nullable persistent field */
    private String bnoBillState;

    /** nullable persistent field */
    private String bnoCreatTime;

    /** nullable persistent field */
    private String bnoLastTime;

    /** persistent field */
    private String bnoYear;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public BillState(String bnoGuid, String bnoBillNumber, String orgCode, String bnoBillState, String bnoCreatTime, String bnoLastTime, String bnoYear, String reserved1, String reserved2, String reserved3) {
        this.bnoGuid = bnoGuid;
        this.bnoBillNumber = bnoBillNumber;
        this.orgCode = orgCode;
        this.bnoBillState = bnoBillState;
        this.bnoCreatTime = bnoCreatTime;
        this.bnoLastTime = bnoLastTime;
        this.bnoYear = bnoYear;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public BillState() {
    }

    /** minimal constructor */
    public BillState(String bnoGuid, String bnoBillNumber, String orgCode, String bnoYear) {
        this.bnoGuid = bnoGuid;
        this.bnoBillNumber = bnoBillNumber;
        this.orgCode = orgCode;
        this.bnoYear = bnoYear;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="BNO_GUID"
     *         
     */
    public String getBnoGuid() {
        return this.bnoGuid;
    }

    public void setBnoGuid(String bnoGuid) {
        this.bnoGuid = bnoGuid;
    }

    /** 
     *            @hibernate.property
     *             column="BNO_BILL_NUMBER"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getBnoBillNumber() {
        return this.bnoBillNumber;
    }

    public void setBnoBillNumber(String bnoBillNumber) {
        this.bnoBillNumber = bnoBillNumber;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_CODE"
     *             length="42"
     *             not-null="true"
     *         
     */
    public String getOrgCode() {
        return this.orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    /** 
     *            @hibernate.property
     *             column="BNO_BILL_STATE"
     *             length="2"
     *         
     */
    public String getBnoBillState() {
        return this.bnoBillState;
    }

    public void setBnoBillState(String bnoBillState) {
        this.bnoBillState = bnoBillState;
    }

    /** 
     *            @hibernate.property
     *             column="BNO_CREAT_TIME"
     *             length="14"
     *         
     */
    public String getBnoCreatTime() {
        return this.bnoCreatTime;
    }

    public void setBnoCreatTime(String bnoCreatTime) {
        this.bnoCreatTime = bnoCreatTime;
    }

    /** 
     *            @hibernate.property
     *             column="BNO_LAST_TIME"
     *             length="14"
     *         
     */
    public String getBnoLastTime() {
        return this.bnoLastTime;
    }

    public void setBnoLastTime(String bnoLastTime) {
        this.bnoLastTime = bnoLastTime;
    }

    /** 
     *            @hibernate.property
     *             column="BNO_YEAR"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getBnoYear() {
        return this.bnoYear;
    }

    public void setBnoYear(String bnoYear) {
        this.bnoYear = bnoYear;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="150"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("bnoGuid", getBnoGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof BillState) ) return false;
        BillState castOther = (BillState) other;
        return new EqualsBuilder()
            .append(this.getBnoGuid(), castOther.getBnoGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getBnoGuid())
            .toHashCode();
    }

}
